package com.chushouya.manager.constants;


import com.general.framework.core.enums.IEnum;

import java.util.Objects;

public enum SmsSceneEnum implements IEnum<String> {

    //业务员登录
    CLERK_LOGIN("clerk_login", "登录"),
    //h5登录
    H5_LOGIN("h5_login", "登录"),
    //App登录
    APP_LOGIN("app_login", "登录");


    private String value;

    private String name;

    SmsSceneEnum(String value, String name) {
        this.value = value;
        this.name = name;
    }

    @Override
    public String value() {
        return this.value;
    }

    @Override
    public String named() {
        return this.name;
    }

    public static String getName(String value) {
        for (SmsSceneEnum thisEnum : SmsSceneEnum.values()) {
            if (Objects.equals(thisEnum.value, value)) {
                return thisEnum.name;
            }
        }
        return "";
    }
}
